<?php
/**
 * Created by PhpStorm
 * User: honglin
 * Date: 2022/7/29
 * Time: 下午4:43
 */

namespace App\Service\Config;

use App\Dao\System\SystemConfigClassifyDao;
use Hyperf\Di\Annotation\Inject;

class ConfigClassifyService
{

    /**
     * @Inject()
     * @var SystemConfigClassifyDao
     */
    protected $systemConfigClassifyDao;


    public function add(\App\Tool\Collect $params)
    {
        $data = $this->systemConfigClassifyDao->add($params);
        return $data;
    }

    public function edit(int $id, \App\Tool\Collect|\Hyperf\Utils\Collection $params)
    {
        $res = $this->systemConfigClassifyDao->edit($id, $params);
        return $res;
    }
}